package com.suxin.notify.listener;

import com.suxin.notify.Event;

import java.util.concurrent.Executor;

/**
 * @author Tang
 * @classname Subscriber
 * @description [  ]
 * @date 2022/9/30 14:30
 */
public abstract class Subscriber<T extends Event> {

    public abstract void onEvent(T event);

    public abstract Class<? extends Event> subscribeType();

    public Executor executor() {
        return null;
    }

    public boolean ignoreExpireEvent() {
        return false;
    }

}
